
const states = {
    num:1
}

function counter(state=states,action){
    switch(action.type){
        case 'change':
                state.num+=action.data
                return  state
            
        default:
            return state;
    }
   
}

export default counter